//
//  MenuDataProvider.m
//  LabanBrowser
//
//  Created by Xh2 on 3/26/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import "MenuDataProvider.h"
#import "MenuDataModel.h"
#import "MyUtilities.h"
@implementation MenuDataProvider
@synthesize menuData;

-(id)init{
    self=[super init];
    if(self){
        [self reload];
        
    }
    return self;
}

-(void)reload{
    menuData=[[NSMutableArray alloc]init];
    NSMutableDictionary* firstBoard=[[NSMutableDictionary alloc]init];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuHomePage"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_home_nor.png"]
                                                  AndMenuType:MenuHomePage]
                   forKey:[NSNumber numberWithInt:0]];
    
//    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[[[StaticVariables shareVariables]stringResource]menuDownload]
//                                                        Image:[[[StaticVariables shareVariables]imageGallery]menuDownload]
//                                                  AndMenuType:MenuDownload]
//                   forKey:[NSNumber numberWithInt:1]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuNightmode"]
                                                         Image:[UIImage imageNamed:@"ic_browser_menu_nightmode_nor.png"]
                                                   AndMenuType:MenuNightMode]
                    forKey:[NSNumber numberWithInt:1]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuSearchText"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_find_nor.png"]
                                                  AndMenuType:MenuSearchOnPage]
                   forKey:[NSNumber numberWithInt:2]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuSettings"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_setting_nor.png"]
                                                  AndMenuType:MenuSettings]
                   forKey:[NSNumber numberWithInt:3]];
    
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuRefresh"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_refresh_nor.png"]
                                                  AndMenuType:MenuRefresh]
                   forKey:[NSNumber numberWithInt:4]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuHistory"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_history_nor.png"]
                                                  AndMenuType:MenuHistory]
                   forKey:[NSNumber numberWithInt:5]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuTheme"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_theme_nor.png"]
                                                  AndMenuType:MenuTheme]
                   forKey:[NSNumber numberWithInt:6]];
    
    [firstBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuBrightness"]
                                                        Image:[UIImage imageNamed:@"ic_brightness_nor.png"]
                                                  AndMenuType:MenuBrightness]
                   forKey:[NSNumber numberWithInt:7]];
    
    
    [menuData addObject: firstBoard];
    
    
    NSMutableDictionary* secondBoard=[[NSMutableDictionary alloc]init];
    
    
    [secondBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuOrientation"]
                                                         Image:[UIImage imageNamed:@"ic_browser_menu_orientation_nor.png"]
                                                   AndMenuType:MenuOrientation]
                    forKey:[NSNumber numberWithInt:0]];
    
   [secondBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuHelp"]
                                                        Image:[UIImage imageNamed:@"ic_browser_menu_help_nor.png"]
                                                   AndMenuType:MenuHelp]
                   forKey:[NSNumber numberWithInt:1]];
    
//    [secondBoard setObject:[[MenuDataModel alloc]initWithTitle:[[[StaticVariables shareVariables]stringResource]menuBrightness]
//                                                         Image:[[[StaticVariables shareVariables]imageGallery]menuBrightness]
//                                                   AndMenuType:MenuBrightness]
//                    forKey:[NSNumber numberWithInt:0]];
    
//    [secondBoard setObject:[[MenuDataModel alloc]initWithTitle:[[[StaticVariables shareVariables]stringResource]menuQRCode]
//                                                         Image:[[[StaticVariables shareVariables]imageGallery]menuQRCode]
//                                                   AndMenuType:MenuQRCode]
//                    forKey:[NSNumber numberWithInt:3]];
    
//    [secondBoard setObject:[[MenuDataModel alloc]initWithTitle:[MyUtilities getLocalizeStringFromTag:@"MenuHelp"]
//                                                         Image:[UIImage imageNamed:@"ic_browser_menu_help_nor.png"]
//                                                   AndMenuType:MenuHelp]
//                    forKey:[NSNumber numberWithInt:0]];
    
    [menuData addObject:secondBoard];
}

@end
